package com.example.dao;

import com.example.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User, Long> {
    @Query(value = "select * from user where username = ?", nativeQuery = true)
    User findByUsername(String username);
}
